package com.gk.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;

@Controller
public class ExceptionController {
    @RequestMapping("/showNullPointer")
    public void showNullPointer() {
        ArrayList<Object> list = null;
        System.out.println(list.get(2));
    }
}
